//
//  BSUIFamily+Category.m
//  SuoSiApp
//
//  Created by zhang on 16/4/27.
//  Copyright © 2016年 Ym. All rights reserved.
//

#import "BSUIFamily+Category.h"

@implementation BSUIFamily (Category)
- (void)dealWithData:(NSData *)data{
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
    //    根据收到的data  给自己的属性 赋值
    NSLog(@"%@",dic);
//    NSArray *arr = [NSArray arrayWithArray:dic[@"Data"]];
    if ([dic[@"Code"] isEqualToString:@"0"]) {
        NSDictionary *dic1 = [NSDictionary dictionaryWithDictionary:dic[@"Data"]];
        
        [self setValuesForKeysWithDictionary:dic1];
    } else {
        [PKRequestManager showAlertView:dic[@"Message"]];
    }
    
}

@end
